var adapter = "SPARGAME_ADAPTER";
function subscribeFeed(group, schema, onItemUpdateArg, onEngineReadyArg) {
  var page = new PushPage();
  page.context.setDomain(document.domain);
  page.onEngineCreation = function(engine) {
    engine.connection.setLSHost(document.domain);
    engine.connection.setLSPort(8080)
    engine.connection.setAdapterName("SPARGAME");
    engine.changeStatus("STREAMING");
  };

  if (onEngineReadyArg != null) {
	  page.onEngineReady = onEngineReadyArg;
  }

  page.bind();
  page.createEngine("SparGameApp", "/site_media/lightstreamer", "NEW_SESSION");

  var table = new NonVisualTable(group, schema, "RAW");
  table.setDataAdapter(adapter);
  table.setSnapshotRequired(false);

  if (onItemUpdateArg != null) {
	  table.onItemUpdate = onItemUpdateArg;
  }
  page.addTable(table, schema + new Date().getTime());

  return page;
}